/**
 * Project Name:YCApiServer-common
 * File Name:InitYcPush.java
 * Package Name:com.yc.music.common.push
 * Date:2016年9月8日下午7:09:38
 * Copyright (c) 2016 
 *
 */
package com.yc.music.common.push;

import cn.jpush.api.JPushClient;
import cn.jpush.api.common.ClientConfig;

/**
 * ClassName: InitYcPush <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason: TODO ADD REASON(可选). <br/>
 * date: 2016年9月8日 下午7:09:38 <br/>
 *
 * @author qinhaiguan
 * @version 
 */
public class InitYcPush {
	
	private static final String appKey = "fc0c317f16cfdc18ebcb7180";
	private static final String masterSecret = "ede2e0d272878914907d800a";
	
	private static InitYcPush ycPush=null;
	
	private InitYcPush(){}
	
	/**
	 * getYcPushInstance:单例获取推送实例. <br/> 
	 *
	 * @author qinhaiguan 
	 * @return
	 * @since JDK 1.7
	 */
	public static JPushClient getYcPushInstance(){
		JPushClient jpushClient=null;
		if (null==ycPush) {
			ClientConfig clientConfig = ClientConfig.getInstance();
			jpushClient = new JPushClient(masterSecret, appKey, null, clientConfig);
		}
		return jpushClient;
	}

	
}
